//
//  BCWalletDetailCashCell.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/12.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "BCWalletDetailNotesCell.h"

@implementation BCWalletDetailNotesCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setupSubviews];
    }
    return self;
}
- (void)setupSubviews {
    self.addressLabel = [QMUILabel new];
    self.addressLabel.textColor = [UIColor qmui_colorWithHexString:@"#666666"];
    self.addressLabel.font = [UIFont systemFontOfSize:9 weight:UIFontWeightRegular];
//    self.addressLabel.adjustsFontSizeToFitWidth = true;
//    self.addressLabel.minimumScaleFactor = .7;
    [self.contentView addSubview:self.addressLabel];
    [self.addressLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.titleLabel.mas_right).offset(5.0);
        make.right.mas_lessThanOrEqualTo(self.contentView).offset(-BCWalletDetailCellContentLeftPadding);
        make.bottom.mas_equalTo(self.titleLabel.mas_top).offset(self.titleLabel.font.lineHeight);
    }];
}

- (void)setCellData:(UserWalletDetailsDataModel *)cellData {
    [super setCellData:cellData];
    //
    self.addressLabel.text = cellData.notes;
}


@end
